/**
 * Copyright (c) 华南农业大学数学与信息学院蔡超敏2017版权所有
 * 
 * 文件创建时间：2017-3-22
 */
package cn.scauinfo.maproutesearch;

import android.app.Activity;
import android.app.Application;
import android.content.Context;
import cn.scauinfo.maproutesearch.core.AppAction;
import cn.scauinfo.maproutesearch.core.AppActionImpl;
import cn.scauinfo.maproutesearch.model.NetworkTipBO;

/**
 * @author chaoking
 * 
 */
public class MapRouteSearchApplication extends Application {
	private AppAction appAction;

	private static Context appContext;

	private static Activity mCurActivity;

	public static NetworkTipBO networkTip = new NetworkTipBO();

	@Override
	public void onCreate() {
		super.onCreate();
		appAction = new AppActionImpl(this);
		appContext = getApplicationContext();
		// TODO
		// SpeechUtility.createUtility(MapRouteSearchApplication.this,
		// "appid=57277715");
	}

	public AppAction getAppAction() {
		return appAction;
	}

	public static Context getContext() {
		return appContext;
	}

	public static Activity getCurActivity() {
		return mCurActivity;
	}

	public static void setCurActivity(Activity activity) {
		mCurActivity = activity;
	}
}
